package com.zhl.springboot_zipkin_study_service_api.service.hystrix;

import com.zhl.springboot_zipkin_study_service_api.service.UserinfoService;
import com.zhl.springboot_zipkin_study_service_api.pojo.Userinfo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import java.util.ArrayList;

@Component
public class UserinfoServiceHystrix implements UserinfoService {
    private Logger logger = LoggerFactory.getLogger(this.getClass());

    @Override
    public ArrayList<Userinfo> findall(String test_value) {
        logger.error("进熔断器了：{}",test_value);
        return new ArrayList<>(0);
    }
}
